/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.goods.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.jeesite.common.dao.TreeDao;
import com.jeesite.common.datasource.DataSourceHolder;
import com.jeesite.common.mybatis.annotation.MyBatisDao;
import com.jeesite.modules.goods.entity.GoodsType;

/**
 * 公司管理DAO接口
 * @author ThinkGem
 * @version 2017-03-12
 */
@MyBatisDao(dataSourceName=DataSourceHolder.DEFAULT)
public interface GoodsTypeDao extends TreeDao<GoodsType> {
	public List<Map> getList();
	public List<Map> getMainList();
	public List<Map> getTwoList(GoodsType goodsType);
	public void setStatus(GoodsType goodsType);
	public void setType(GoodsType goodsType);
	public List<String> getGoodsCode(GoodsType goodsType);
	
	public Map getListByCode(@Param("goodsCode") String goodsCode);
	
	public Map getMainListByCode(@Param("goodsCode") String goodsCode);
	List<Map> getGoodsTypeList(@Param("parentCode") String parentCode);
	int getState(@Param("list") String [] list);
	List<String> getGoodsCodeId();
	void statistical(List<GoodsType> list);
	GoodsType statisticalNum(@Param("goodsCode")String goodsCode);
}